/**
 * @author LiuShanshan
 * @version V1.0
 * @Description
 */
public interface Subject {
    /**
     * 添加订阅
     * @param observer
     * @return
     * @author LiuShanshan
     */
    public void attach(Iobserverdemo2 observer);

    /**
     * 删除
     * @param observer
     * @return
     * @author LiuShanshan
     */
    public void detach(Iobserverdemo2 observer);

    /**
     * 消息通知
     * @param message
     * @return
     * @author LiuShanshan
     */
    public void notify(String message);
}
